import request from '@/utils/request'

// export function getList(query) {
//     return request({
//       url: '/sysm/module/list',
//       method: 'get',
//       params: query
//     })
//   }
export function getList(query) {
  return request({
    url: '/sysm/module/listByTree',
    method: 'get',
    params: query
  })
}

export function saveOrUpdate(param) {
  return request.post('/sysm/module/saveOrUpdate', JSON.stringify(param))
}

export function deleteById(id) {
  return request({
    url: `/sysm/module/${id}`,
    method: 'delete'
  })
}
